class CreateThoiKhoaBieus < ActiveRecord::Migration
  def up
    create_table :thoi_khoa_bieus do |t|
      t.string :MaTKB
      t.integer :Thu
      t.integer :TietBD
      t.integer :SoTiet
      t.integer :MaNV
      t.integer :MaPhong
      t.string  :MaLop
      t.string  :TuanHoc
      t.date    :ThoiGianBD
      t.date    :ThoiGianKT
      t.string  :TenMH
      t.string  :TenGV
      t.string  :TenMH2
      t.string  :TGHoc
      t.string  :TGIn

      t.timestamps
    end
  end

  def down
    drop_table :thoi_khoa_bieus
  end
end
